<?php

/**
 * Created by PhpStorm.
 * User: chen
 * Date: 2015/6/25
 * Time: 10:55
 */
class AdminUserModel extends Model
{
    public function addLoginTime($id)
    {
        $map = array();
        $map['id'] = $id;
        $data['lastlogin'] = time();
        $this->where($map)->data($data)->save();
    }
    /**
     * 获取truename
     */
    public function getTrueName($id){
        $map=array();
        $map['id']=$id;
        return $this->where($map)->getField('truename');
    }
    

}